package com.home.school.vo;

import com.home.school.bean.TSubject;
import lombok.Data;

@Data
public class SubjectVO {
    /**
     * 主键ID
     */
    private Integer id;

    /**
     * 课程标题
     */
    private String title;

    /**
     * 课程价格
     */
    private String price;

    /**
     * 课程时长
     */
    private Integer time;

    /**
     * 课程状态
     */
    private Integer status;

    private Integer type;

    private Integer teacherId;

    private String num;

    private String picUrl;

    public TSubject transfer(){
        TSubject subject = new TSubject();
        subject.setId(id);
        subject.setPrice(price);
        subject.setTime(time);
        subject.setStatus(status);
        subject.setTitle(title);
        subject.setType(type);
        subject.setPicUrl(picUrl);
        return subject;
    }
}
